# -*- coding: utf-8 -*-
'''
@author: Hugo
@file: models_base.py
@time: 2021/12/5 19:13
'''
from django.db import models


class BaseModel(models.Model):
    create_time = models.DateTimeField(auto_now_add=True,verbose_name='创建时间')
    update_time = models.DateTimeField(auto_now_add=True,verbose_name='更新时间')

    class Meta:
        # 指定为抽象类 不会创建表
        abstract = True